package com.leaves.entity.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Author LEAVES
 * @Date 2022/4/30 18:45
 * @Version 1.0
 * @Description: 登录信息
 */
@Data
public class LoginUser {

    /**
     * 账号
     */
    @NotBlank(message = "请输入账号")
    private String username;

    /**
     * 密码
     */
    @NotBlank(message = "请输入密码")
    private String password;

    /**
     * 设备
     */
    @NotBlank(message = "请填写登录设备")
    private String device;

    /**
     * 验证码
     */
    @NotBlank(message = "请填写验证码")
    private String code;
}
